#Author:guoxier
#课表2.0


user_data = "guoxier"
password_data = "123"
user_data_vip = "gguo"
password_vip = "321"

#会员每天可查看10次，非会员为5次
count = 3
while True:
    count -= 1
    # 用户输入
    username = input("请输入您的账号：")
    password = input("请输入您的密码：")
    # 判断账户输入

    if user_data == username or user_data_vip == username:
        if password_data == password:
            print("欢迎登录", username, "欢迎登陆")
            count = 5
        elif password_vip == password:
            print("欢迎vip用户登录", username, "欢迎登陆")
            count = 10
            # 1.输出时间，让具体的星期和小时转成可以被判断的条件。
            import time
            print(time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()))  # 输出当前时间
            time = time.strftime("%H")
            week_time = int(time)
            # int（）参数必须是字符串、类似字节的对象或数字,这里使用int（）是为了用于将一个字符串或数字转换为整型，方便我们在下面代码中判断时间。
            # 属于time模块的要和datetime模块的区分开，不能全部塞在一起。
            import datetime
            day = datetime.datetime.today().weekday()
            week_day = int(day)
            print("今日课程:")
            if week_day == 1:
                if week_time <= 12:
                    print("Python语言,2实203")
                    if week_time in (12,18):
                        print("下午有两门课o")
                        print("12:50-14:20,写作训练,1-202;14:30-16:50,创业基础(实践),1-401")
                        if week_time >= 18:
                            print("今日课程结束，请记得完成作业!")
                        elif week_day == 2:
                            if week_time <= 12:
                                print("早上两节课连上，请务必加快脚步哦!")
                                print("08:00-09:30,无线电测向,西区篮球场西面;09:45-12:00,人体寄生虫与健康,4实107")
                                if week_time in (12,14):
                                    print("美美午睡")
                                if week_time in (14,17):
                                    print("14:30-16:50,网站运营与管理,3实304")
                                    if week_time > 17:
                                        print("今日课程结束，请记得完成作业!")
                                    elif week_day == 3:
                                        if week_time <= 12:
                                            print("早八again,早上依旧两节课,不过时间稍稍松点,今天有时间吃早饭哦")
                                            print("08:00-09:30,毛概(实践),9-207;10:35-12:00,内部审计实务,5-301")
                                            if week_time in (18,21):
                                                print("18:45-20:10,大英,10-104")
                                                if week_time > 21:
                                                    print("完成大英作业再睡觉!!")
                                                elif week_day == 4:
                                                    if week_time in (10,12):
                                                        print("10:35-12:00,科学技术发展史,11-102")
                                                        if week_time in (12,14):
                                                            print("美美午睡")
                                                            if week_time in (14,16):
                                                                print("14:30-15:55,广告文案写作,1-303")
                                                                if week_time > 16:
                                                                    print("今日课程结束，睡前预习明早大英内容!")
                                                                elif week_day == 5:
                                                                    if week_time <= 12:
                                                                        print("早八triple")
                                                                        print("08:00-09:30,大英,10-302;10:35-12:00,AI软件应用,新综合楼612")
                                                                        if week_time >12:
                                                                            print("迎接快乐周末")
                                                                        else:
                                                                            print("放假放假")
                                                                            break
                                                                    elif count == 0:
                                                                        print("输入错误次数达5次，请五分钟后再试")
                                                                        break
                                                                    else:
                                                                        print("您输入的账号或密码不正确，请重新输入，您还有",count,"次机会")
                                                                    continue
